
/* compressed demo JS v1.18.070420 by Niko (bluepspower@163.com) */
if (typeof YAHOO == "undefined") {
	var YAHOO = {};
}
YAHOO.namespace = function () {
	var a = arguments, o = null, i, j, d;
	for (i = 0; i < a.length; ++i) {
		d = a[i].split(".");
		o = YAHOO;
		for (j = (d[0] == "YAHOO") ? 1 : 0; j < d.length; ++j) {
			o[d[j]] = o[d[j]] || {};
			o = o[d[j]];
		}
	}
	return o;
};
YAHOO.log = function (_6, _7, _8) {
	var l = YAHOO.widget.Logger;
	if (l && l.log) {
		return l.log(_6, _7, _8);
	} else {
		return false;
	}
};
YAHOO.extend = function (_a, _b, _c) {
	var F = function () {
	};
	F.prototype = _b.prototype;
	_a.prototype = new F();
	_a.prototype.constructor = _a;
	_a.superclass = _b.prototype;
	if (_b.prototype.constructor == Object.prototype.constructor) {
		_b.prototype.constructor = _b;
	}
	if (_c) {
		for (var i in _c) {
			_a.prototype[i] = _c[i];
		}
	}
};
YAHOO.augment = function (r, s) {
	var rp = r.prototype, sp = s.prototype, a = arguments, i, p;
	if (a[2]) {
		for (i = 2; i < a.length; ++i) {
			rp[a[i]] = sp[a[i]];
		}
	} else {
		for (p in sp) {
			if (!rp[p]) {
				rp[p] = sp[p];
			}
		}
	}
};
YAHOO.namespace("util", "widget", "example");
(function () {
	var Y = YAHOO.util, _2, _3, _4 = 0, _5 = {};
	var ua = navigator.userAgent.toLowerCase(), _7 = (ua.indexOf("opera") > -1), _8 = (ua.indexOf("safari") > -1), _9 = (!_7 && !_8 && ua.indexOf("gecko") > -1), _a = (!_7 && ua.indexOf("msie") > -1);
	var _b = {HYPHEN:/(-[a-z])/i};
	var _c = function (_d) {
		if (!_b.HYPHEN.test(_d)) {
			return _d;
		}
		if (_5[_d]) {
			return _5[_d];
		}
		while (_b.HYPHEN.exec(_d)) {
			_d = _d.replace(RegExp.$1, RegExp.$1.substr(1).toUpperCase());
		}
		_5[_d] = _d;
		return _d;
	};
	if (document.defaultView && document.defaultView.getComputedStyle) {
		_2 = function (el, _f) {
			var _10 = null;
			var _11 = document.defaultView.getComputedStyle(el, "");
			if (_11) {
				_10 = _11[_c(_f)];
			}
			return el.style[_f] || _10;
		};
	} else {
		if (document.documentElement.currentStyle && _a) {
			_2 = function (el, _13) {
				switch (_c(_13)) {
				  case "opacity":
					var val = 100;
					try {
						val = el.filters["DXImageTransform.Microsoft.Alpha"].opacity;
					}
					catch (e) {
						try {
							val = el.filters("alpha").opacity;
						}
						catch (e) {
						}
					}
					return val / 100;
					break;
				  default:
					var _15 = el.currentStyle ? el.currentStyle[_13] : null;
					return (el.style[_13] || _15);
				}
			};
		} else {
			_2 = function (el, _17) {
				return el.style[_17];
			};
		}
	}
	if (_a) {
		_3 = function (el, _19, val) {
			switch (_19) {
			  case "opacity":
				if (typeof el.style.filter == "string") {
					el.style.filter = "alpha(opacity=" + val * 100 + ")";
					if (!el.currentStyle || !el.currentStyle.hasLayout) {
						el.style.zoom = 1;
					}
				}
				break;
			  default:
				el.style[_19] = val;
			}
		};
	} else {
		_3 = function (el, _1c, val) {
			el.style[_1c] = val;
		};
	}
	YAHOO.util.Dom = {get:function (el) {
		if (!el) {
			return null;
		}
		if (typeof el != "string" && !(el instanceof Array)) {
			return el;
		}
		if (typeof el == "string") {
			return document.getElementById(el);
		} else {
			var _1f = [];
			for (var i = 0, len = el.length; i < len; ++i) {
				_1f[_1f.length] = Y.Dom.get(el[i]);
			}
			return _1f;
		}
		return null;
	}, getStyle:function (el, _23) {
		_23 = _c(_23);
		var f = function (_25) {
			return _2(_25, _23);
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, setStyle:function (el, _27, val) {
		_27 = _c(_27);
		var f = function (_2a) {
			_3(_2a, _27, val);
		};
		Y.Dom.batch(el, f, Y.Dom, true);
	}, getXY:function (el) {
		var f = function (el) {
			if (el.parentNode === null || el.offsetParent === null || this.getStyle(el, "display") == "none") {
				return false;
			}
			var _2e = null;
			var pos = [];
			var box;
			if (el.getBoundingClientRect) {
				box = el.getBoundingClientRect();
				var doc = document;
				if (!this.inDocument(el) && parent.document != document) {
					doc = parent.document;
					if (!this.isAncestor(doc.documentElement, el)) {
						return false;
					}
				}
				var _32 = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop);
				var _33 = Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft);
				return [box.left + _33, box.top + _32];
			} else {
				pos = [el.offsetLeft, el.offsetTop];
				_2e = el.offsetParent;
				var _34 = false;
				if (_2e != el) {
					while (_2e) {
						pos[0] += _2e.offsetLeft;
						pos[1] += _2e.offsetTop;
						if (_8 && !_34 && this.getStyle(_2e, "position") == "absolute") {
							_34 = true;
						}
						_2e = _2e.offsetParent;
					}
				}
				if (_8 && (_34 || this.getStyle(el, "position") == "absolute")) {
					pos[0] -= document.body.offsetLeft;
					pos[1] -= document.body.offsetTop;
				}
			}
			if (el.parentNode) {
				_2e = el.parentNode;
			} else {
				_2e = null;
			}
			while (_2e && _2e.tagName.toUpperCase() != "BODY" && _2e.tagName.toUpperCase() != "HTML") {
				if (Y.Dom.getStyle(_2e, "display") != "inline") {
					pos[0] -= _2e.scrollLeft;
					pos[1] -= _2e.scrollTop;
				}
				if (_2e.parentNode) {
					_2e = _2e.parentNode;
				} else {
					_2e = null;
				}
			}
			return pos;
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, getX:function (el) {
		var f = function (el) {
			return Y.Dom.getXY(el)[0];
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, getY:function (el) {
		var f = function (el) {
			return Y.Dom.getXY(el)[1];
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, setXY:function (el, pos, _3d) {
		var f = function (el) {
			var _40 = this.getStyle(el, "position");
			if (_40 == "static") {
				this.setStyle(el, "position", "relative");
				_40 = "relative";
			}
			var _41 = this.getXY(el);
			if (_41 === false) {
				return false;
			}
			var _42 = [parseInt(this.getStyle(el, "left"), 10), parseInt(this.getStyle(el, "top"), 10)];
			if (isNaN(_42[0])) {
				_42[0] = (_40 == "relative") ? 0 : el.offsetLeft;
			}
			if (isNaN(_42[1])) {
				_42[1] = (_40 == "relative") ? 0 : el.offsetTop;
			}
			if (pos[0] !== null) {
				el.style.left = pos[0] - _41[0] + _42[0] + "px";
			}
			if (pos[1] !== null) {
				el.style.top = pos[1] - _41[1] + _42[1] + "px";
			}
			var _43 = this.getXY(el);
			if (!_3d && (_43[0] != pos[0] || _43[1] != pos[1])) {
				this.setXY(el, pos, true);
			}
		};
		Y.Dom.batch(el, f, Y.Dom, true);
	}, setX:function (el, x) {
		Y.Dom.setXY(el, [x, null]);
	}, setY:function (el, y) {
		Y.Dom.setXY(el, [null, y]);
	}, getRegion:function (el) {
		var f = function (el) {
			var _4b = new Y.Region.getRegion(el);
			return _4b;
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, getClientWidth:function () {
		return Y.Dom.getViewportWidth();
	}, getClientHeight:function () {
		return Y.Dom.getViewportHeight();
	}, getElementsByClassName:function (_4c, tag, _4e) {
		var _4f = function (el) {
			return Y.Dom.hasClass(el, _4c);
		};
		return Y.Dom.getElementsBy(_4f, tag, _4e);
	}, hasClass:function (el, _52) {
		var re = new RegExp("(?:^|\\s+)" + _52 + "(?:\\s+|$)");
		var f = function (el) {
			return re.test(el["className"]);
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, addClass:function (el, _57) {
		var f = function (el) {
			if (this.hasClass(el, _57)) {
				return;
			}
			el["className"] = [el["className"], _57].join(" ");
		};
		Y.Dom.batch(el, f, Y.Dom, true);
	}, removeClass:function (el, _5b) {
		var re = new RegExp("(?:^|\\s+)" + _5b + "(?:\\s+|$)", "g");
		var f = function (el) {
			if (!this.hasClass(el, _5b)) {
				return;
			}
			var c = el["className"];
			el["className"] = c.replace(re, " ");
			if (this.hasClass(el, _5b)) {
				this.removeClass(el, _5b);
			}
		};
		Y.Dom.batch(el, f, Y.Dom, true);
	}, replaceClass:function (el, _61, _62) {
		if (_61 === _62) {
			return false;
		}
		var re = new RegExp("(?:^|\\s+)" + _61 + "(?:\\s+|$)", "g");
		var f = function (el) {
			if (!this.hasClass(el, _61)) {
				this.addClass(el, _62);
				return;
			}
			el["className"] = el["className"].replace(re, " " + _62 + " ");
			if (this.hasClass(el, _61)) {
				this.replaceClass(el, _61, _62);
			}
		};
		Y.Dom.batch(el, f, Y.Dom, true);
	}, generateId:function (el, _67) {
		_67 = _67 || "yui-gen";
		el = el || {};
		var f = function (el) {
			if (el) {
				el = Y.Dom.get(el);
			} else {
				el = {};
			}
			if (!el.id) {
				el.id = _67 + _4++;
			}
			return el.id;
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, isAncestor:function (_6a, _6b) {
		_6a = Y.Dom.get(_6a);
		if (!_6a || !_6b) {
			return false;
		}
		var f = function (_6d) {
			if (_6a.contains && !_8) {
				return _6a.contains(_6d);
			} else {
				if (_6a.compareDocumentPosition) {
					return !!(_6a.compareDocumentPosition(_6d) & 16);
				} else {
					var _6e = _6d.parentNode;
					while (_6e) {
						if (_6e == _6a) {
							return true;
						} else {
							if (!_6e.tagName || _6e.tagName.toUpperCase() == "HTML") {
								return false;
							}
						}
						_6e = _6e.parentNode;
					}
					return false;
				}
			}
		};
		return Y.Dom.batch(_6b, f, Y.Dom, true);
	}, inDocument:function (el) {
		var f = function (el) {
			return this.isAncestor(document.documentElement, el);
		};
		return Y.Dom.batch(el, f, Y.Dom, true);
	}, getElementsBy:function (_72, tag, _74) {
		tag = tag || "*";
		_74 = Y.Dom.get(_74) || document;
		var _75 = [];
		var _76 = _74.getElementsByTagName(tag);
		if (!_76.length && (tag == "*" && _74.all)) {
			_76 = _74.all;
		}
		for (var i = 0, len = _76.length; i < len; ++i) {
			if (_72(_76[i])) {
				_75[_75.length] = _76[i];
			}
		}
		return _75;
	}, batch:function (el, _7a, o, _7c) {
		var id = el;
		el = Y.Dom.get(el);
		var _7e = (_7c) ? o : window;
		if (!el || el.tagName || !el.length) {
			if (!el) {
				return false;
			}
			return _7a.call(_7e, el, o);
		}
		var _7f = [];
		for (var i = 0, len = el.length; i < len; ++i) {
			if (!el[i]) {
				id = el[i];
			}
			_7f[_7f.length] = _7a.call(_7e, el[i], o);
		}
		return _7f;
	}, getDocumentHeight:function () {
		var _82 = (document.compatMode != "CSS1Compat") ? document.body.scrollHeight : document.documentElement.scrollHeight;
		var h = Math.max(_82, Y.Dom.getViewportHeight());
		return h;
	}, getDocumentWidth:function () {
		var _84 = (document.compatMode != "CSS1Compat") ? document.body.scrollWidth : document.documentElement.scrollWidth;
		var w = Math.max(_84, Y.Dom.getViewportWidth());
		return w;
	}, getViewportHeight:function () {
		var _86 = self.innerHeight;
		var _87 = document.compatMode;
		if ((_87 || _a) && !_7) {
			_86 = (_87 == "CSS1Compat") ? document.documentElement.clientHeight : document.body.clientHeight;
		}
		return _86;
	}, getViewportWidth:function () {
		var _88 = self.innerWidth;
		var _89 = document.compatMode;
		if (_89 || _a) {
			_88 = (_89 == "CSS1Compat") ? document.documentElement.clientWidth : document.body.clientWidth;
		}
		return _88;
	}};
})();
YAHOO.util.Region = function (t, r, b, l) {
	this.top = t;
	this[1] = t;
	this.right = r;
	this.bottom = b;
	this.left = l;
	this[0] = l;
};
YAHOO.util.Region.prototype.contains = function (_8e) {
	return (_8e.left >= this.left && _8e.right <= this.right && _8e.top >= this.top && _8e.bottom <= this.bottom);
};
YAHOO.util.Region.prototype.getArea = function () {
	return ((this.bottom - this.top) * (this.right - this.left));
};
YAHOO.util.Region.prototype.intersect = function (_8f) {
	var t = Math.max(this.top, _8f.top);
	var r = Math.min(this.right, _8f.right);
	var b = Math.min(this.bottom, _8f.bottom);
	var l = Math.max(this.left, _8f.left);
	if (b >= t && r >= l) {
		return new YAHOO.util.Region(t, r, b, l);
	} else {
		return null;
	}
};
YAHOO.util.Region.prototype.union = function (_94) {
	var t = Math.min(this.top, _94.top);
	var r = Math.max(this.right, _94.right);
	var b = Math.max(this.bottom, _94.bottom);
	var l = Math.min(this.left, _94.left);
	return new YAHOO.util.Region(t, r, b, l);
};
YAHOO.util.Region.prototype.toString = function () {
	return ("Region {" + "top: " + this.top + ", right: " + this.right + ", bottom: " + this.bottom + ", left: " + this.left + "}");
};
YAHOO.util.Region.getRegion = function (el) {
	var p = YAHOO.util.Dom.getXY(el);
	var t = p[1];
	var r = p[0] + el.offsetWidth;
	var b = p[1] + el.offsetHeight;
	var l = p[0];
	return new YAHOO.util.Region(t, r, b, l);
};
YAHOO.util.Point = function (x, y) {
	if (x instanceof Array) {
		y = x[1];
		x = x[0];
	}
	this.x = this.right = this.left = this[0] = x;
	this.y = this.top = this.bottom = this[1] = y;
};
YAHOO.util.Point.prototype = new YAHOO.util.Region();
YAHOO.util.CustomEvent = function (_1, _2, _3, _4) {
	this.type = _1;
	this.scope = _2 || window;
	this.silent = _3;
	this.signature = _4 || YAHOO.util.CustomEvent.LIST;
	this.subscribers = [];
	if (!this.silent) {
	}
	var _5 = "_YUICEOnSubscribe";
	if (_1 !== _5) {
		this.subscribeEvent = new YAHOO.util.CustomEvent(_5, this, true);
	}
};
YAHOO.util.CustomEvent.LIST = 0;
YAHOO.util.CustomEvent.FLAT = 1;
YAHOO.util.CustomEvent.prototype = {subscribe:function (fn, _7, _8) {
	if (this.subscribeEvent) {
		this.subscribeEvent.fire(fn, _7, _8);
	}
	this.subscribers.push(new YAHOO.util.Subscriber(fn, _7, _8));
}, unsubscribe:function (fn, _a) {
	var _b = false;
	for (var i = 0, _d = this.subscribers.length; i < _d; ++i) {
		var s = this.subscribers[i];
		if (s && s.contains(fn, _a)) {
			this._delete(i);
			_b = true;
		}
	}
	return _b;
}, fire:function () {
	var _f = this.subscribers.length;
	if (!_f && this.silent) {
		return true;
	}
	var _10 = [], ret = true, i;
	for (i = 0; i < arguments.length; ++i) {
		_10.push(arguments[i]);
	}
	var _13 = _10.length;
	if (!this.silent) {
	}
	for (i = 0; i < _f; ++i) {
		var s = this.subscribers[i];
		if (s) {
			if (!this.silent) {
			}
			var _15 = s.getScope(this.scope);
			if (this.signature == YAHOO.util.CustomEvent.FLAT) {
				var _16 = null;
				if (_10.length > 0) {
					_16 = _10[0];
				}
				ret = s.fn.call(_15, _16, s.obj);
			} else {
				ret = s.fn.call(_15, this.type, _10, s.obj);
			}
			if (false === ret) {
				if (!this.silent) {
				}
				return false;
			}
		}
	}
	return true;
}, unsubscribeAll:function () {
	for (var i = 0, len = this.subscribers.length; i < len; ++i) {
		this._delete(len - 1 - i);
	}
}, _delete:function (_19) {
	var s = this.subscribers[_19];
	if (s) {
		delete s.fn;
		delete s.obj;
	}
	this.subscribers.splice(_19, 1);
}, toString:function () {
	return "CustomEvent: " + "'" + this.type + "', " + "scope: " + this.scope;
}};
YAHOO.util.Subscriber = function (fn, obj, _1d) {
	this.fn = fn;
	this.obj = obj || null;
	this.override = _1d;
};
YAHOO.util.Subscriber.prototype.getScope = function (_1e) {
	if (this.override) {
		if (this.override === true) {
			return this.obj;
		} else {
			return this.override;
		}
	}
	return _1e;
};
YAHOO.util.Subscriber.prototype.contains = function (fn, obj) {
	if (obj) {
		return (this.fn == fn && this.obj == obj);
	} else {
		return (this.fn == fn);
	}
};
YAHOO.util.Subscriber.prototype.toString = function () {
	return "Subscriber { obj: " + (this.obj || "") + ", override: " + (this.override || "no") + " }";
};
if (!YAHOO.util.Event) {
	YAHOO.util.Event = function () {
		var _21 = false;
		var _22 = [];
		var _23 = [];
		var _24 = [];
		var _25 = [];
		var _26 = 0;
		var _27 = [];
		var _28 = [];
		var _29 = 0;
		return {POLL_RETRYS:200, POLL_INTERVAL:20, EL:0, TYPE:1, FN:2, WFN:3, OBJ:3, ADJ_SCOPE:4, isSafari:(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent), isIE:(!this.isSafari && !navigator.userAgent.match(/opera/gi) && navigator.userAgent.match(/msie/gi)), _interval:null, startInterval:function () {
			if (!this._interval) {
				var _2a = this;
				var _2b = function () {
					_2a._tryPreloadAttach();
				};
				this._interval = setInterval(_2b, this.POLL_INTERVAL);
			}
		}, onAvailable:function (_2c, _2d, _2e, _2f) {
			_27.push({id:_2c, fn:_2d, obj:_2e, override:_2f, checkReady:false});
			_26 = this.POLL_RETRYS;
			this.startInterval();
		}, onContentReady:function (_30, _31, _32, _33) {
			_27.push({id:_30, fn:_31, obj:_32, override:_33, checkReady:true});
			_26 = this.POLL_RETRYS;
			this.startInterval();
		}, addListener:function (el, _35, fn, obj, _38) {
			if (!fn || !fn.call) {
				return false;
			}
			if (this._isValidCollection(el)) {
				var ok = true;
				for (var i = 0, len = el.length; i < len; ++i) {
					ok = this.on(el[i], _35, fn, obj, _38) && ok;
				}
				return ok;
			} else {
				if (typeof el == "string") {
					var oEl = this.getEl(el);
					if (oEl) {
						el = oEl;
					} else {
						this.onAvailable(el, function () {
							YAHOO.util.Event.on(el, _35, fn, obj, _38);
						});
						return true;
					}
				}
			}
			if (!el) {
				return false;
			}
			if ("unload" == _35 && obj !== this) {
				_23[_23.length] = [el, _35, fn, obj, _38];
				return true;
			}
			var _3d = el;
			if (_38) {
				if (_38 === true) {
					_3d = obj;
				} else {
					_3d = _38;
				}
			}
			var _3e = function (e) {
				return fn.call(_3d, YAHOO.util.Event.getEvent(e), obj);
			};
			var li = [el, _35, fn, _3e, _3d];
			var _41 = _22.length;
			_22[_41] = li;
			if (this.useLegacyEvent(el, _35)) {
				var _42 = this.getLegacyIndex(el, _35);
				if (_42 == -1 || el != _24[_42][0]) {
					_42 = _24.length;
					_28[el.id + _35] = _42;
					_24[_42] = [el, _35, el["on" + _35]];
					_25[_42] = [];
					el["on" + _35] = function (e) {
						YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e), _42);
					};
				}
				_25[_42].push(li);
			} else {
				this._simpleAdd(el, _35, _3e, false);
			}
			return true;
		}, fireLegacyEvent:function (e, _45) {
			var ok = true;
			var le = _25[_45];
			for (var i = 0, len = le.length; i < len; ++i) {
				var li = le[i];
				if (li && li[this.WFN]) {
					var _4b = li[this.ADJ_SCOPE];
					var ret = li[this.WFN].call(_4b, e);
					ok = (ok && ret);
				}
			}
			return ok;
		}, getLegacyIndex:function (el, _4e) {
			var key = this.generateId(el) + _4e;
			if (typeof _28[key] == "undefined") {
				return -1;
			} else {
				return _28[key];
			}
		}, useLegacyEvent:function (el, _51) {
			if (!el.addEventListener && !el.attachEvent) {
				return true;
			} else {
				if (this.isSafari) {
					if ("click" == _51 || "dblclick" == _51) {
						return true;
					}
				}
			}
			return false;
		}, removeListener:function (el, _53, fn) {
			var i, len;
			if (typeof el == "string") {
				el = this.getEl(el);
			} else {
				if (this._isValidCollection(el)) {
					var ok = true;
					for (i = 0, len = el.length; i < len; ++i) {
						ok = (this.removeListener(el[i], _53, fn) && ok);
					}
					return ok;
				}
			}
			if (!fn || !fn.call) {
				return this.purgeElement(el, false, _53);
			}
			if ("unload" == _53) {
				for (i = 0, len = _23.length; i < len; i++) {
					var li = _23[i];
					if (li && li[0] == el && li[1] == _53 && li[2] == fn) {
						_23.splice(i, 1);
						return true;
					}
				}
				return false;
			}
			var _59 = null;
			var _5a = arguments[3];
			if ("undefined" == typeof _5a) {
				_5a = this._getCacheIndex(el, _53, fn);
			}
			if (_5a >= 0) {
				_59 = _22[_5a];
			}
			if (!el || !_59) {
				return false;
			}
			if (this.useLegacyEvent(el, _53)) {
				var _5b = this.getLegacyIndex(el, _53);
				var _5c = _25[_5b];
				if (_5c) {
					for (i = 0, len = _5c.length; i < len; ++i) {
						li = _5c[i];
						if (li && li[this.EL] == el && li[this.TYPE] == _53 && li[this.FN] == fn) {
							_5c.splice(i, 1);
							break;
						}
					}
				}
			} else {
				this._simpleRemove(el, _53, _59[this.WFN], false);
			}
			delete _22[_5a][this.WFN];
			delete _22[_5a][this.FN];
			_22.splice(_5a, 1);
			return true;
		}, getTarget:function (ev, _5e) {
			var t = ev.target || ev.srcElement;
			return this.resolveTextNode(t);
		}, resolveTextNode:function (_60) {
			if (_60 && 3 == _60.nodeType) {
				return _60.parentNode;
			} else {
				return _60;
			}
		}, getPageX:function (ev) {
			var x = ev.pageX;
			if (!x && 0 !== x) {
				x = ev.clientX || 0;
				if (this.isIE) {
					x += this._getScrollLeft();
				}
			}
			return x;
		}, getPageY:function (ev) {
			var y = ev.pageY;
			if (!y && 0 !== y) {
				y = ev.clientY || 0;
				if (this.isIE) {
					y += this._getScrollTop();
				}
			}
			return y;
		}, getXY:function (ev) {
			return [this.getPageX(ev), this.getPageY(ev)];
		}, getRelatedTarget:function (ev) {
			var t = ev.relatedTarget;
			if (!t) {
				if (ev.type == "mouseout") {
					t = ev.toElement;
				} else {
					if (ev.type == "mouseover") {
						t = ev.fromElement;
					}
				}
			}
			return this.resolveTextNode(t);
		}, getTime:function (ev) {
			if (!ev.time) {
				var t = new Date().getTime();
				try {
					ev.time = t;
				}
				catch (e) {
					return t;
				}
			}
			return ev.time;
		}, stopEvent:function (ev) {
			this.stopPropagation(ev);
			this.preventDefault(ev);
		}, stopPropagation:function (ev) {
			if (ev.stopPropagation) {
				ev.stopPropagation();
			} else {
				ev.cancelBubble = true;
			}
		}, preventDefault:function (ev) {
			if (ev.preventDefault) {
				ev.preventDefault();
			} else {
				ev.returnValue = false;
			}
		}, getEvent:function (e) {
			var ev = e || window.event;
			if (!ev) {
				var c = this.getEvent.caller;
				while (c) {
					ev = c.arguments[0];
					if (ev && Event == ev.constructor) {
						break;
					}
					c = c.caller;
				}
			}
			return ev;
		}, getCharCode:function (ev) {
			return ev.charCode || ev.keyCode || 0;
		}, _getCacheIndex:function (el, _72, fn) {
			for (var i = 0, len = _22.length; i < len; ++i) {
				var li = _22[i];
				if (li && li[this.FN] == fn && li[this.EL] == el && li[this.TYPE] == _72) {
					return i;
				}
			}
			return -1;
		}, generateId:function (el) {
			var id = el.id;
			if (!id) {
				id = "yuievtautoid-" + _29;
				++_29;
				el.id = id;
			}
			return id;
		}, _isValidCollection:function (o) {
			return (o && o.length && typeof o != "string" && !o.tagName && !o.alert && typeof o[0] != "undefined");
		}, elCache:{}, getEl:function (id) {
			return document.getElementById(id);
		}, clearCache:function () {
		}, _load:function (e) {
			_21 = true;
			var EU = YAHOO.util.Event;
			if (this.isIE) {
				EU._simpleRemove(window, "load", EU._load);
			}
		}, _tryPreloadAttach:function () {
			if (this.locked) {
				return false;
			}
			this.locked = true;
			var _7d = !_21;
			if (!_7d) {
				_7d = (_26 > 0);
			}
			var _7e = [];
			for (var i = 0, len = _27.length; i < len; ++i) {
				var _81 = _27[i];
				if (_81) {
					var el = this.getEl(_81.id);
					if (el) {
						if (!_81.checkReady || _21 || el.nextSibling || (document && document.body)) {
							var _83 = el;
							if (_81.override) {
								if (_81.override === true) {
									_83 = _81.obj;
								} else {
									_83 = _81.override;
								}
							}
							_81.fn.call(_83, _81.obj);
							delete _27[i];
						}
					} else {
						_7e.push(_81);
					}
				}
			}
			_26 = (_7e.length === 0) ? 0 : _26 - 1;
			if (_7d) {
				this.startInterval();
			} else {
				clearInterval(this._interval);
				this._interval = null;
			}
			this.locked = false;
			return true;
		}, purgeElement:function (el, _85, _86) {
			var _87 = this.getListeners(el, _86);
			if (_87) {
				for (var i = 0, len = _87.length; i < len; ++i) {
					var l = _87[i];
					this.removeListener(el, l.type, l.fn);
				}
			}
			if (_85 && el && el.childNodes) {
				for (i = 0, len = el.childNodes.length; i < len; ++i) {
					this.purgeElement(el.childNodes[i], _85, _86);
				}
			}
		}, getListeners:function (el, _8c) {
			var _8d = [];
			if (_22 && _22.length > 0) {
				for (var i = 0, len = _22.length; i < len; ++i) {
					var l = _22[i];
					if (l && l[this.EL] === el && (!_8c || _8c === l[this.TYPE])) {
						_8d.push({type:l[this.TYPE], fn:l[this.FN], obj:l[this.OBJ], adjust:l[this.ADJ_SCOPE], index:i});
					}
				}
			}
			return (_8d.length) ? _8d : null;
		}, _unload:function (e) {
			var EU = YAHOO.util.Event, i, j, l, len, _97;
			for (i = 0, len = _23.length; i < len; ++i) {
				l = _23[i];
				if (l) {
					var _98 = window;
					if (l[EU.ADJ_SCOPE]) {
						if (l[EU.ADJ_SCOPE] === true) {
							_98 = l[EU.OBJ];
						} else {
							_98 = l[EU.ADJ_SCOPE];
						}
					}
					l[EU.FN].call(_98, EU.getEvent(e), l[EU.OBJ]);
					delete _23[i];
					l = null;
					_98 = null;
				}
			}
			if (_22 && _22.length > 0) {
				j = _22.length;
				while (j) {
					_97 = j - 1;
					l = _22[_97];
					if (l) {
						EU.removeListener(l[EU.EL], l[EU.TYPE], l[EU.FN], _97);
					}
					j = j - 1;
				}
				l = null;
				EU.clearCache();
			}
			for (i = 0, len = _24.length; i < len; ++i) {
				delete _24[i][0];
				delete _24[i];
			}
			EU._simpleRemove(window, "unload", EU._unload);
		}, _getScrollLeft:function () {
			return this._getScroll()[1];
		}, _getScrollTop:function () {
			return this._getScroll()[0];
		}, _getScroll:function () {
			var dd = document.documentElement, db = document.body;
			if (dd && (dd.scrollTop || dd.scrollLeft)) {
				return [dd.scrollTop, dd.scrollLeft];
			} else {
				if (db) {
					return [db.scrollTop, db.scrollLeft];
				} else {
					return [0, 0];
				}
			}
		}, _simpleAdd:function () {
			if (window.addEventListener) {
				return function (el, _9c, fn, _9e) {
					el.addEventListener(_9c, fn, (_9e));
				};
			} else {
				if (window.attachEvent) {
					return function (el, _a0, fn, _a2) {
						el.attachEvent("on" + _a0, fn);
					};
				} else {
					return function () {
					};
				}
			}
		}(), _simpleRemove:function () {
			if (window.removeEventListener) {
				return function (el, _a4, fn, _a6) {
					el.removeEventListener(_a4, fn, (_a6));
				};
			} else {
				if (window.detachEvent) {
					return function (el, _a8, fn) {
						el.detachEvent("on" + _a8, fn);
					};
				} else {
					return function () {
					};
				}
			}
		}()};
	}();
	(function () {
		var EU = YAHOO.util.Event;
		EU.on = EU.addListener;
		if (document && document.body) {
			EU._load();
		} else {
			EU._simpleAdd(window, "load", EU._load);
		}
		EU._simpleAdd(window, "unload", EU._unload);
		EU._tryPreloadAttach();
	})();
}
YAHOO.util.EventProvider = function () {
};
YAHOO.util.EventProvider.prototype = {__yui_events:null, __yui_subscribers:null, subscribe:function (_ab, _ac, _ad, _ae) {
	this.__yui_events = this.__yui_events || {};
	var ce = this.__yui_events[_ab];
	if (ce) {
		ce.subscribe(_ac, _ad, _ae);
	} else {
		this.__yui_subscribers = this.__yui_subscribers || {};
		var _b0 = this.__yui_subscribers;
		if (!_b0[_ab]) {
			_b0[_ab] = [];
		}
		_b0[_ab].push({fn:_ac, obj:_ad, override:_ae});
	}
}, unsubscribe:function (_b1, _b2, _b3) {
	this.__yui_events = this.__yui_events || {};
	var ce = this.__yui_events[_b1];
	if (ce) {
		return ce.unsubscribe(_b2, _b3);
	} else {
		return false;
	}
}, createEvent:function (_b5, _b6) {
	this.__yui_events = this.__yui_events || {};
	var _b7 = _b6 || {};
	var _b8 = this.__yui_events;
	if (_b8[_b5]) {
	} else {
		var _b9 = _b7.scope || this;
		var _ba = _b7.silent || null;
		var ce = new YAHOO.util.CustomEvent(_b5, _b9, _ba, YAHOO.util.CustomEvent.FLAT);
		_b8[_b5] = ce;
		if (_b7.onSubscribeCallback) {
			ce.subscribeEvent.subscribe(_b7.onSubscribeCallback);
		}
		this.__yui_subscribers = this.__yui_subscribers || {};
		var qs = this.__yui_subscribers[_b5];
		if (qs) {
			for (var i = 0; i < qs.length; ++i) {
				ce.subscribe(qs[i].fn, qs[i].obj, qs[i].override);
			}
		}
	}
	return _b8[_b5];
}, fireEvent:function (_be, _bf, _c0, etc) {
	this.__yui_events = this.__yui_events || {};
	var ce = this.__yui_events[_be];
	if (ce) {
		var _c3 = [];
		for (var i = 1; i < arguments.length; ++i) {
			_c3.push(arguments[i]);
		}
		return ce.fire.apply(ce, _c3);
	} else {
		return null;
	}
}, hasEvent:function (_c5) {
	if (this.__yui_events) {
		if (this.__yui_events[_c5]) {
			return true;
		}
	}
	return false;
}};
YAHOO.util.Connect = {_msxml_progid:["MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], _http_header:{}, _has_http_headers:false, _use_default_post_header:true, _default_post_header:"application/x-www-form-urlencoded", _isFormSubmit:false, _isFileUpload:false, _formNode:null, _sFormData:null, _poll:{}, _timeOut:{}, _polling_interval:50, _transaction_id:0, setProgId:function (id) {
	this._msxml_progid.unshift(id);
}, setDefaultPostHeader:function (b) {
	this._use_default_post_header = b;
}, setPollingInterval:function (i) {
	if (typeof i == "number" && isFinite(i)) {
		this._polling_interval = i;
	}
}, createXhrObject:function (_4) {
	var _5, _6;
	try {
		_6 = new XMLHttpRequest();
		_5 = {conn:_6, tId:_4};
	}
	catch (e) {
		for (var i = 0; i < this._msxml_progid.length; ++i) {
			try {
				_6 = new ActiveXObject(this._msxml_progid[i]);
				_5 = {conn:_6, tId:_4};
				break;
			}
			catch (e) {
			}
		}
	}
	finally {
		return _5;
	}
}, getConnectionObject:function () {
	var o;
	var _9 = this._transaction_id;
	try {
		o = this.createXhrObject(_9);
		if (o) {
			this._transaction_id++;
		}
	}
	catch (e) {
	}
	finally {
		return o;
	}
}, asyncRequest:function (_a, _b, _c, _d) {
	var o = this.getConnectionObject();
	if (!o) {
		return null;
	} else {
		if (this._isFormSubmit) {
			if (this._isFileUpload) {
				this.uploadFile(o.tId, _c, _b, _d);
				this.releaseObject(o);
				return;
			}
			if (_a == "GET") {
				if (this._sFormData.length != 0) {
					_b += ((_b.indexOf("?") == -1) ? "?" : "&") + this._sFormData;
				} else {
					_b += "?" + this._sFormData;
				}
			} else {
				if (_a == "POST") {
					_d = _d ? this._sFormData + "&" + _d : this._sFormData;
				}
			}
		}
		o.conn.open(_a, _b, true);
		if (this._isFormSubmit || (_d && this._use_default_post_header)) {
			this.initHeader("Content-Type", this._default_post_header);
			if (this._isFormSubmit) {
				this.resetFormState();
			}
		}
		if (this._has_http_headers) {
			this.setHeader(o);
		}
		this.handleReadyState(o, _c);
		o.conn.send(_d || null);
		return o;
	}
}, handleReadyState:function (o, _10) {
	var _11 = this;
	if (_10 && _10.timeout) {
		this._timeOut[o.tId] = window.setTimeout(function () {
			_11.abort(o, _10, true);
		}, _10.timeout);
	}
	this._poll[o.tId] = window.setInterval(function () {
		if (o.conn && o.conn.readyState == 4) {
			window.clearInterval(_11._poll[o.tId]);
			delete _11._poll[o.tId];
			if (_10 && _10.timeout) {
				delete _11._timeOut[o.tId];
			}
			_11.handleTransactionResponse(o, _10);
		}
	}, this._polling_interval);
}, handleTransactionResponse:function (o, _13, _14) {
	if (!_13) {
		this.releaseObject(o);
		return;
	}
	var _15, _16;
	try {
		if (o.conn.status !== undefined && o.conn.status != 0) {
			_15 = o.conn.status;
		} else {
			_15 = 13030;
		}
	}
	catch (e) {
		_15 = 13030;
	}
	if (_15 >= 200 && _15 < 300) {
		_16 = this.createResponseObject(o, _13.argument);
		if (_13.success) {
			if (!_13.scope) {
				_13.success(_16);
			} else {
				_13.success.apply(_13.scope, [_16]);
			}
		}
	} else {
		try {
			switch (_15) {
			  case 12002:
			  case 12029:
			  case 12030:
			  case 12031:
			  case 12152:
			  case 13030:
				_16 = this.createExceptionObject(o.tId, _13.argument, (_14 ? _14 : false));
				if (_13.failure) {
					if (!_13.scope) {
						_13.failure(_16);
					} else {
						_13.failure.apply(_13.scope, [_16]);
					}
				}
				break;
			  default:
				_16 = this.createResponseObject(o, _13.argument);
				if (_13.failure) {
					if (!_13.scope) {
						_13.failure(_16);
					} else {
						_13.failure.apply(_13.scope, [_16]);
					}
				}
			}
		}
		catch (e) {
		}
	}
	this.releaseObject(o);
	_16 = null;
}, createResponseObject:function (o, _18) {
	var obj = {};
	var _1a = {};
	try {
		var _1b = o.conn.getAllResponseHeaders();
		var _1c = _1b.split("\n");
		for (var i = 0; i < _1c.length; i++) {
			var _1e = _1c[i].indexOf(":");
			if (_1e != -1) {
				_1a[_1c[i].substring(0, _1e)] = _1c[i].substring(_1e + 2);
			}
		}
	}
	catch (e) {
	}
	obj.tId = o.tId;
	obj.status = o.conn.status;
	obj.statusText = o.conn.statusText;
	obj.getResponseHeader = _1a;
	obj.getAllResponseHeaders = _1b;
	obj.responseText = o.conn.responseText;
	obj.responseXML = o.conn.responseXML;
	if (typeof _18 !== undefined) {
		obj.argument = _18;
	}
	return obj;
}, createExceptionObject:function (tId, _20, _21) {
	var _22 = 0;
	var _23 = "communication failure";
	var _24 = -1;
	var _25 = "transaction aborted";
	var obj = {};
	obj.tId = tId;
	if (_21) {
		obj.status = _24;
		obj.statusText = _25;
	} else {
		obj.status = _22;
		obj.statusText = _23;
	}
	if (_20) {
		obj.argument = _20;
	}
	return obj;
}, initHeader:function (lb, _28) {
	if (this._http_header[lb] === undefined) {
		this._http_header[lb] = _28;
	} else {
		this._http_header[lb] = _28 + "," + this._http_header[lb];
	}
	this._has_http_headers = true;
}, setHeader:function (o) {
	for (var _2a in this._http_header) {
		if (this._http_header.hasOwnProperty(_2a)) {
			o.conn.setRequestHeader(_2a, this._http_header[_2a]);
		}
	}
	delete this._http_header;
	this._http_header = {};
	this._has_http_headers = false;
}, setForm:function (_2b, _2c, _2d) {
	this.resetFormState();
	var _2e;
	if (typeof _2b == "string") {
		_2e = (document.getElementById(_2b) || document.forms[_2b]);
	} else {
		if (typeof _2b == "object") {
			_2e = _2b;
		} else {
			return;
		}
	}
	if (_2c) {
		this.createFrame(_2d ? _2d : null);
		this._isFormSubmit = true;
		this._isFileUpload = true;
		this._formNode = _2e;
		return;
	}
	var _2f, _30, _31, _32;
	var _33 = false;
	for (var i = 0; i < _2e.elements.length; i++) {
		_2f = _2e.elements[i];
		_32 = _2e.elements[i].disabled;
		_30 = _2e.elements[i].name;
		_31 = _2e.elements[i].value;
		if (!_32 && _30) {
			switch (_2f.type) {
			  case "select-one":
			  case "select-multiple":
				for (var j = 0; j < _2f.options.length; j++) {
					if (_2f.options[j].selected) {
						if (window.ActiveXObject) {
							this._sFormData += encodeURIComponent(_30) + "=" + encodeURIComponent(_2f.options[j].attributes["value"].specified ? _2f.options[j].value : _2f.options[j].text) + "&";
						} else {
							this._sFormData += encodeURIComponent(_30) + "=" + encodeURIComponent(_2f.options[j].hasAttribute("value") ? _2f.options[j].value : _2f.options[j].text) + "&";
						}
					}
				}
				break;
			  case "radio":
			  case "checkbox":
				if (_2f.checked) {
					this._sFormData += encodeURIComponent(_30) + "=" + encodeURIComponent(_31) + "&";
				}
				break;
			  case "file":
			  case undefined:
			  case "reset":
			  case "button":
				break;
			  case "submit":
				if (_33 == false) {
					this._sFormData += encodeURIComponent(_30) + "=" + encodeURIComponent(_31) + "&";
					_33 = true;
				}
				break;
			  default:
				this._sFormData += encodeURIComponent(_30) + "=" + encodeURIComponent(_31) + "&";
				break;
			}
		}
	}
	this._isFormSubmit = true;
	this._sFormData = this._sFormData.substr(0, this._sFormData.length - 1);
	return this._sFormData;
}, resetFormState:function () {
	this._isFormSubmit = false;
	this._isFileUpload = false;
	this._formNode = null;
	this._sFormData = "";
}, createFrame:function (_36) {
	var _37 = "yuiIO" + this._transaction_id;
	if (window.ActiveXObject) {
		var io = document.createElement("<iframe id=\"" + _37 + "\" name=\"" + _37 + "\" />");
		if (typeof _36 == "boolean") {
			io.src = "javascript:false";
		} else {
			if (typeof secureURI == "string") {
				io.src = _36;
			}
		}
	} else {
		var io = document.createElement("iframe");
		io.id = _37;
		io.name = _37;
	}
	io.style.position = "absolute";
	io.style.top = "-1000px";
	io.style.left = "-1000px";
	document.body.appendChild(io);
}, appendPostData:function (_39) {
	var _3a = new Array();
	var _3b = _39.split("&");
	for (var i = 0; i < _3b.length; i++) {
		var _3d = _3b[i].indexOf("=");
		if (_3d != -1) {
			_3a[i] = document.createElement("input");
			_3a[i].type = "hidden";
			_3a[i].name = _3b[i].substring(0, _3d);
			_3a[i].value = _3b[i].substring(_3d + 1);
			this._formNode.appendChild(_3a[i]);
		}
	}
	return _3a;
}, uploadFile:function (id, _3f, uri, _41) {
	var _42 = "yuiIO" + id;
	var io = document.getElementById(_42);
	this._formNode.action = uri;
	this._formNode.method = "POST";
	this._formNode.target = _42;
	if (this._formNode.encoding) {
		this._formNode.encoding = "multipart/form-data";
	} else {
		this._formNode.enctype = "multipart/form-data";
	}
	if (_41) {
		var _44 = this.appendPostData(_41);
	}
	this._formNode.submit();
	if (_44 && _44.length > 0) {
		try {
			for (var i = 0; i < _44.length; i++) {
				this._formNode.removeChild(_44[i]);
			}
		}
		catch (e) {
		}
	}
	this.resetFormState();
	var _46 = function () {
		var obj = {};
		obj.tId = id;
		obj.argument = _3f.argument;
		try {
			obj.responseText = io.contentWindow.document.body ? io.contentWindow.document.body.innerHTML : null;
			obj.responseXML = io.contentWindow.document.XMLDocument ? io.contentWindow.document.XMLDocument : io.contentWindow.document;
		}
		catch (e) {
		}
		if (_3f.upload) {
			if (!_3f.scope) {
				_3f.upload(obj);
			} else {
				_3f.upload.apply(_3f.scope, [obj]);
			}
		}
		if (YAHOO.util.Event) {
			YAHOO.util.Event.removeListener(io, "load", _46);
		} else {
			if (window.detachEvent) {
				io.detachEvent("onload", _46);
			} else {
				io.removeEventListener("load", _46, false);
			}
		}
		setTimeout(function () {
			document.body.removeChild(io);
		}, 100);
	};
	if (YAHOO.util.Event) {
		YAHOO.util.Event.addListener(io, "load", _46);
	} else {
		if (window.attachEvent) {
			io.attachEvent("onload", _46);
		} else {
			io.addEventListener("load", _46, false);
		}
	}
}, abort:function (o, _49, _4a) {
	if (this.isCallInProgress(o)) {
		o.conn.abort();
		window.clearInterval(this._poll[o.tId]);
		delete this._poll[o.tId];
		if (_4a) {
			delete this._timeOut[o.tId];
		}
		this.handleTransactionResponse(o, _49, true);
		return true;
	} else {
		return false;
	}
}, isCallInProgress:function (o) {
	if (o.conn) {
		return o.conn.readyState != 4 && o.conn.readyState != 0;
	} else {
		return false;
	}
}, releaseObject:function (o) {
	o.conn = null;
	o = null;
}};
YAHOO.util.Anim = function (el, _2, _3, _4) {
	if (el) {
		this.init(el, _2, _3, _4);
	}
};
YAHOO.util.Anim.prototype = {toString:function () {
	var el = this.getEl();
	var id = el.id || el.tagName;
	return ("Anim " + id);
}, patterns:{noNegatives:/width|height|opacity|padding/i, offsetAttribute:/^((width|height)|(top|left))$/, defaultUnit:/width|height|top$|bottom$|left$|right$/i, offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i}, doMethod:function (_7, _8, _9) {
	return this.method(this.currentFrame, _8, _9 - _8, this.totalFrames);
}, setAttribute:function (_a, _b, _c) {
	if (this.patterns.noNegatives.test(_a)) {
		_b = (_b > 0) ? _b : 0;
	}
	YAHOO.util.Dom.setStyle(this.getEl(), _a, _b + _c);
}, getAttribute:function (_d) {
	var el = this.getEl();
	var _f = YAHOO.util.Dom.getStyle(el, _d);
	if (_f !== "auto" && !this.patterns.offsetUnit.test(_f)) {
		return parseFloat(_f);
	}
	var a = this.patterns.offsetAttribute.exec(_d) || [];
	var pos = !!(a[3]);
	var box = !!(a[2]);
	if (box || (YAHOO.util.Dom.getStyle(el, "position") == "absolute" && pos)) {
		_f = el["offset" + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
	} else {
		_f = 0;
	}
	return _f;
}, getDefaultUnit:function (_13) {
	if (this.patterns.defaultUnit.test(_13)) {
		return "px";
	}
	return "";
}, setRuntimeAttribute:function (_14) {
	var _15;
	var end;
	var _17 = this.attributes;
	this.runtimeAttributes[_14] = {};
	var _18 = function (_19) {
		return (typeof _19 !== "undefined");
	};
	if (!_18(_17[_14]["to"]) && !_18(_17[_14]["by"])) {
		return false;
	}
	_15 = (_18(_17[_14]["from"])) ? _17[_14]["from"] : this.getAttribute(_14);
	if (_18(_17[_14]["to"])) {
		end = _17[_14]["to"];
	} else {
		if (_18(_17[_14]["by"])) {
			if (_15.constructor == Array) {
				end = [];
				for (var i = 0, len = _15.length; i < len; ++i) {
					end[i] = _15[i] + _17[_14]["by"][i];
				}
			} else {
				end = _15 + _17[_14]["by"];
			}
		}
	}
	this.runtimeAttributes[_14].start = _15;
	this.runtimeAttributes[_14].end = end;
	this.runtimeAttributes[_14].unit = (_18(_17[_14].unit)) ? _17[_14]["unit"] : this.getDefaultUnit(_14);
}, init:function (el, _1d, _1e, _1f) {
	var _20 = false;
	var _21 = null;
	var _22 = 0;
	el = YAHOO.util.Dom.get(el);
	this.attributes = _1d || {};
	this.duration = _1e || 1;
	this.method = _1f || YAHOO.util.Easing.easeNone;
	this.useSeconds = true;
	this.currentFrame = 0;
	this.totalFrames = YAHOO.util.AnimMgr.fps;
	this.getEl = function () {
		return el;
	};
	this.isAnimated = function () {
		return _20;
	};
	this.getStartTime = function () {
		return _21;
	};
	this.runtimeAttributes = {};
	this.animate = function () {
		if (this.isAnimated()) {
			return false;
		}
		this.currentFrame = 0;
		this.totalFrames = (this.useSeconds) ? Math.ceil(YAHOO.util.AnimMgr.fps * this.duration) : this.duration;
		YAHOO.util.AnimMgr.registerElement(this);
	};
	this.stop = function (_23) {
		if (_23) {
			this.currentFrame = this.totalFrames;
			this._onTween.fire();
		}
		YAHOO.util.AnimMgr.stop(this);
	};
	var _24 = function () {
		this.onStart.fire();
		this.runtimeAttributes = {};
		for (var _25 in this.attributes) {
			this.setRuntimeAttribute(_25);
		}
		_20 = true;
		_22 = 0;
		_21 = new Date();
	};
	var _26 = function () {
		var _27 = {duration:new Date() - this.getStartTime(), currentFrame:this.currentFrame};
		_27.toString = function () {
			return ("duration: " + _27.duration + ", currentFrame: " + _27.currentFrame);
		};
		this.onTween.fire(_27);
		var _28 = this.runtimeAttributes;
		for (var _29 in _28) {
			this.setAttribute(_29, this.doMethod(_29, _28[_29].start, _28[_29].end), _28[_29].unit);
		}
		_22 += 1;
	};
	var _2a = function () {
		var _2b = (new Date() - _21) / 1000;
		var _2c = {duration:_2b, frames:_22, fps:_22 / _2b};
		_2c.toString = function () {
			return ("duration: " + _2c.duration + ", frames: " + _2c.frames + ", fps: " + _2c.fps);
		};
		_20 = false;
		_22 = 0;
		this.onComplete.fire(_2c);
	};
	this._onStart = new YAHOO.util.CustomEvent("_start", this, true);
	this.onStart = new YAHOO.util.CustomEvent("start", this);
	this.onTween = new YAHOO.util.CustomEvent("tween", this);
	this._onTween = new YAHOO.util.CustomEvent("_tween", this, true);
	this.onComplete = new YAHOO.util.CustomEvent("complete", this);
	this._onComplete = new YAHOO.util.CustomEvent("_complete", this, true);
	this._onStart.subscribe(_24);
	this._onTween.subscribe(_26);
	this._onComplete.subscribe(_2a);
}};
YAHOO.util.AnimMgr = new function () {
	var _2d = null;
	var _2e = [];
	var _2f = 0;
	this.fps = 1000;
	this.delay = 1;
	this.registerElement = function (_30) {
		_2e[_2e.length] = _30;
		_2f += 1;
		_30._onStart.fire();
		this.start();
	};
	this.unRegister = function (_31, _32) {
		_31._onComplete.fire();
		_32 = _32 || _33(_31);
		if (_32 != -1) {
			_2e.splice(_32, 1);
		}
		_2f -= 1;
		if (_2f <= 0) {
			this.stop();
		}
	};
	this.start = function () {
		if (_2d === null) {
			_2d = setInterval(this.run, this.delay);
		}
	};
	this.stop = function (_34) {
		if (!_34) {
			clearInterval(_2d);
			for (var i = 0, len = _2e.length; i < len; ++i) {
				if (_2e[i].isAnimated()) {
					this.unRegister(_34, i);
				}
			}
			_2e = [];
			_2d = null;
			_2f = 0;
		} else {
			this.unRegister(_34);
		}
	};
	this.run = function () {
		for (var i = 0, len = _2e.length; i < len; ++i) {
			var _39 = _2e[i];
			if (!_39 || !_39.isAnimated()) {
				continue;
			}
			if (_39.currentFrame < _39.totalFrames || _39.totalFrames === null) {
				_39.currentFrame += 1;
				if (_39.useSeconds) {
					_3a(_39);
				}
				_39._onTween.fire();
			} else {
				YAHOO.util.AnimMgr.stop(_39, i);
			}
		}
	};
	var _33 = function (_3b) {
		for (var i = 0, len = _2e.length; i < len; ++i) {
			if (_2e[i] == _3b) {
				return i;
			}
		}
		return -1;
	};
	var _3a = function (_3e) {
		var _3f = _3e.totalFrames;
		var _40 = _3e.currentFrame;
		var _41 = (_3e.currentFrame * _3e.duration * 1000 / _3e.totalFrames);
		var _42 = (new Date() - _3e.getStartTime());
		var _43 = 0;
		if (_42 < _3e.duration * 1000) {
			_43 = Math.round((_42 / _41 - 1) * _3e.currentFrame);
		} else {
			_43 = _3f - (_40 + 1);
		}
		if (_43 > 0 && isFinite(_43)) {
			if (_3e.currentFrame + _43 >= _3f) {
				_43 = _3f - (_40 + 1);
			}
			_3e.currentFrame += _43;
		}
	};
};
YAHOO.util.Bezier = new function () {
	this.getPosition = function (_44, t) {
		var n = _44.length;
		var tmp = [];
		for (var i = 0; i < n; ++i) {
			tmp[i] = [_44[i][0], _44[i][1]];
		}
		for (var j = 1; j < n; ++j) {
			for (i = 0; i < n - j; ++i) {
				tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
				tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
			}
		}
		return [tmp[0][0], tmp[0][1]];
	};
};
(function () {
	YAHOO.util.ColorAnim = function (el, _4b, _4c, _4d) {
		YAHOO.util.ColorAnim.superclass.constructor.call(this, el, _4b, _4c, _4d);
	};
	YAHOO.extend(YAHOO.util.ColorAnim, YAHOO.util.Anim);
	var Y = YAHOO.util;
	var _4f = Y.ColorAnim.superclass;
	var _50 = Y.ColorAnim.prototype;
	_50.toString = function () {
		var el = this.getEl();
		var id = el.id || el.tagName;
		return ("ColorAnim " + id);
	};
	_50.patterns.color = /color$/i;
	_50.patterns.rgb = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
	_50.patterns.hex = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;
	_50.patterns.hex3 = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;
	_50.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/;
	_50.parseColor = function (s) {
		if (s.length == 3) {
			return s;
		}
		var c = this.patterns.hex.exec(s);
		if (c && c.length == 4) {
			return [parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16)];
		}
		c = this.patterns.rgb.exec(s);
		if (c && c.length == 4) {
			return [parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10)];
		}
		c = this.patterns.hex3.exec(s);
		if (c && c.length == 4) {
			return [parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16)];
		}
		return null;
	};
	_50.getAttribute = function (_55) {
		var el = this.getEl();
		if (this.patterns.color.test(_55)) {
			var val = YAHOO.util.Dom.getStyle(el, _55);
			if (this.patterns.transparent.test(val)) {
				var _58 = el.parentNode;
				val = Y.Dom.getStyle(_58, _55);
				while (_58 && this.patterns.transparent.test(val)) {
					_58 = _58.parentNode;
					val = Y.Dom.getStyle(_58, _55);
					if (_58.tagName.toUpperCase() == "HTML") {
						val = "#fff";
					}
				}
			}
		} else {
			val = _4f.getAttribute.call(this, _55);
		}
		return val;
	};
	_50.doMethod = function (_59, _5a, end) {
		var val;
		if (this.patterns.color.test(_59)) {
			val = [];
			for (var i = 0, len = _5a.length; i < len; ++i) {
				val[i] = _4f.doMethod.call(this, _59, _5a[i], end[i]);
			}
			val = "rgb(" + Math.floor(val[0]) + "," + Math.floor(val[1]) + "," + Math.floor(val[2]) + ")";
		} else {
			val = _4f.doMethod.call(this, _59, _5a, end);
		}
		return val;
	};
	_50.setRuntimeAttribute = function (_5f) {
		_4f.setRuntimeAttribute.call(this, _5f);
		if (this.patterns.color.test(_5f)) {
			var _60 = this.attributes;
			var _61 = this.parseColor(this.runtimeAttributes[_5f].start);
			var end = this.parseColor(this.runtimeAttributes[_5f].end);
			if (typeof _60[_5f]["to"] === "undefined" && typeof _60[_5f]["by"] !== "undefined") {
				end = this.parseColor(_60[_5f].by);
				for (var i = 0, len = _61.length; i < len; ++i) {
					end[i] = _61[i] + end[i];
				}
			}
			this.runtimeAttributes[_5f].start = _61;
			this.runtimeAttributes[_5f].end = end;
		}
	};
})();
YAHOO.util.Easing = {easeNone:function (t, b, c, d) {
	return c * t / d + b;
}, easeIn:function (t, b, c, d) {
	return c * (t /= d) * t + b;
}, easeOut:function (t, b, c, d) {
	return -c * (t /= d) * (t - 2) + b;
}, easeBoth:function (t, b, c, d) {
	if ((t /= d / 2) < 1) {
		return c / 2 * t * t + b;
	}
	return -c / 2 * ((--t) * (t - 2) - 1) + b;
}, easeInStrong:function (t, b, c, d) {
	return c * (t /= d) * t * t * t + b;
}, easeOutStrong:function (t, b, c, d) {
	return -c * ((t = t / d - 1) * t * t * t - 1) + b;
}, easeBothStrong:function (t, b, c, d) {
	if ((t /= d / 2) < 1) {
		return c / 2 * t * t * t * t + b;
	}
	return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
}, elasticIn:function (t, b, c, d, a, p) {
	if (t == 0) {
		return b;
	}
	if ((t /= d) == 1) {
		return b + c;
	}
	if (!p) {
		p = d * 0.3;
	}
	if (!a || a < Math.abs(c)) {
		a = c;
		var s = p / 4;
	} else {
		var s = p / (2 * Math.PI) * Math.asin(c / a);
	}
	return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
}, elasticOut:function (t, b, c, d, a, p) {
	if (t == 0) {
		return b;
	}
	if ((t /= d) == 1) {
		return b + c;
	}
	if (!p) {
		p = d * 0.3;
	}
	if (!a || a < Math.abs(c)) {
		a = c;
		var s = p / 4;
	} else {
		var s = p / (2 * Math.PI) * Math.asin(c / a);
	}
	return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
}, elasticBoth:function (t, b, c, d, a, p) {
	if (t == 0) {
		return b;
	}
	if ((t /= d / 2) == 2) {
		return b + c;
	}
	if (!p) {
		p = d * (0.3 * 1.5);
	}
	if (!a || a < Math.abs(c)) {
		a = c;
		var s = p / 4;
	} else {
		var s = p / (2 * Math.PI) * Math.asin(c / a);
	}
	if (t < 1) {
		return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
	}
	return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b;
}, backIn:function (t, b, c, d, s) {
	if (typeof s == "undefined") {
		s = 1.70158;
	}
	return c * (t /= d) * t * ((s + 1) * t - s) + b;
}, backOut:function (t, b, c, d, s) {
	if (typeof s == "undefined") {
		s = 1.70158;
	}
	return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
}, backBoth:function (t, b, c, d, s) {
	if (typeof s == "undefined") {
		s = 1.70158;
	}
	if ((t /= d / 2) < 1) {
		return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
	}
	return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
}, bounceIn:function (t, b, c, d) {
	return c - YAHOO.util.Easing.bounceOut(d - t, 0, c, d) + b;
}, bounceOut:function (t, b, c, d) {
	if ((t /= d) < (1 / 2.75)) {
		return c * (7.5625 * t * t) + b;
	} else {
		if (t < (2 / 2.75)) {
			return c * (7.5625 * (t -= (1.5 / 2.75)) * t + 0.75) + b;
		} else {
			if (t < (2.5 / 2.75)) {
				return c * (7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375) + b;
			} else {
				return c * (7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375) + b;
			}
		}
	}
}, bounceBoth:function (t, b, c, d) {
	if (t < d / 2) {
		return YAHOO.util.Easing.bounceIn(t * 2, 0, c, d) * 0.5 + b;
	}
	return YAHOO.util.Easing.bounceOut(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b;
}};
(function () {
	YAHOO.util.Motion = function (el, _b2, _b3, _b4) {
		if (el) {
			YAHOO.util.Motion.superclass.constructor.call(this, el, _b2, _b3, _b4);
		}
	};
	YAHOO.extend(YAHOO.util.Motion, YAHOO.util.ColorAnim);
	var Y = YAHOO.util;
	var _b6 = Y.Motion.superclass;
	var _b7 = Y.Motion.prototype;
	_b7.toString = function () {
		var el = this.getEl();
		var id = el.id || el.tagName;
		return ("Motion " + id);
	};
	_b7.patterns.points = /^points$/i;
	_b7.setAttribute = function (_ba, val, _bc) {
		if (this.patterns.points.test(_ba)) {
			_bc = _bc || "px";
			_b6.setAttribute.call(this, "left", val[0], _bc);
			_b6.setAttribute.call(this, "top", val[1], _bc);
		} else {
			_b6.setAttribute.call(this, _ba, val, _bc);
		}
	};
	_b7.getAttribute = function (_bd) {
		if (this.patterns.points.test(_bd)) {
			var val = [_b6.getAttribute.call(this, "left"), _b6.getAttribute.call(this, "top")];
		} else {
			val = _b6.getAttribute.call(this, _bd);
		}
		return val;
	};
	_b7.doMethod = function (_bf, _c0, end) {
		var val = null;
		if (this.patterns.points.test(_bf)) {
			var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100;
			val = Y.Bezier.getPosition(this.runtimeAttributes[_bf], t);
		} else {
			val = _b6.doMethod.call(this, _bf, _c0, end);
		}
		return val;
	};
	_b7.setRuntimeAttribute = function (_c4) {
		if (this.patterns.points.test(_c4)) {
			var el = this.getEl();
			var _c6 = this.attributes;
			var _c7;
			var _c8 = _c6["points"]["control"] || [];
			var end;
			var i, len;
			if (_c8.length > 0 && !(_c8[0] instanceof Array)) {
				_c8 = [_c8];
			} else {
				var tmp = [];
				for (i = 0, len = _c8.length; i < len; ++i) {
					tmp[i] = _c8[i];
				}
				_c8 = tmp;
			}
			if (Y.Dom.getStyle(el, "position") == "static") {
				Y.Dom.setStyle(el, "position", "relative");
			}
			if (_cd(_c6["points"]["from"])) {
				Y.Dom.setXY(el, _c6["points"]["from"]);
			} else {
				Y.Dom.setXY(el, Y.Dom.getXY(el));
			}
			_c7 = this.getAttribute("points");
			if (_cd(_c6["points"]["to"])) {
				end = _ce.call(this, _c6["points"]["to"], _c7);
				var _cf = Y.Dom.getXY(this.getEl());
				for (i = 0, len = _c8.length; i < len; ++i) {
					_c8[i] = _ce.call(this, _c8[i], _c7);
				}
			} else {
				if (_cd(_c6["points"]["by"])) {
					end = [_c7[0] + _c6["points"]["by"][0], _c7[1] + _c6["points"]["by"][1]];
					for (i = 0, len = _c8.length; i < len; ++i) {
						_c8[i] = [_c7[0] + _c8[i][0], _c7[1] + _c8[i][1]];
					}
				}
			}
			this.runtimeAttributes[_c4] = [_c7];
			if (_c8.length > 0) {
				this.runtimeAttributes[_c4] = this.runtimeAttributes[_c4].concat(_c8);
			}
			this.runtimeAttributes[_c4][this.runtimeAttributes[_c4].length] = end;
		} else {
			_b6.setRuntimeAttribute.call(this, _c4);
		}
	};
	var _ce = function (val, _d1) {
		var _d2 = Y.Dom.getXY(this.getEl());
		val = [val[0] - _d2[0] + _d1[0], val[1] - _d2[1] + _d1[1]];
		return val;
	};
	var _cd = function (_d3) {
		return (typeof _d3 !== "undefined");
	};
})();
(function () {
	YAHOO.util.Scroll = function (el, _d5, _d6, _d7) {
		if (el) {
			YAHOO.util.Scroll.superclass.constructor.call(this, el, _d5, _d6, _d7);
		}
	};
	YAHOO.extend(YAHOO.util.Scroll, YAHOO.util.ColorAnim);
	var Y = YAHOO.util;
	var _d9 = Y.Scroll.superclass;
	var _da = Y.Scroll.prototype;
	_da.toString = function () {
		var el = this.getEl();
		var id = el.id || el.tagName;
		return ("Scroll " + id);
	};
	_da.doMethod = function (_dd, _de, end) {
		var val = null;
		if (_dd == "scroll") {
			val = [this.method(this.currentFrame, _de[0], end[0] - _de[0], this.totalFrames), this.method(this.currentFrame, _de[1], end[1] - _de[1], this.totalFrames)];
		} else {
			val = _d9.doMethod.call(this, _dd, _de, end);
		}
		return val;
	};
	_da.getAttribute = function (_e1) {
		var val = null;
		var el = this.getEl();
		if (_e1 == "scroll") {
			val = [el.scrollLeft, el.scrollTop];
		} else {
			val = _d9.getAttribute.call(this, _e1);
		}
		return val;
	};
	_da.setAttribute = function (_e4, val, _e6) {
		var el = this.getEl();
		if (_e4 == "scroll") {
			el.scrollLeft = val[0];
			el.scrollTop = val[1];
		} else {
			_d9.setAttribute.call(this, _e4, val, _e6);
		}
	};
})();

